<%@ page language="java" contentType="text/html; charset=UTF-8"
			pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- VERIFICA SE O USUÁRIO ESTÁ COM O COOKIE VÁLIDO, SENÃO O REDIRECIONA PARA A PÁGINA DE LOGIN -->
<%@ include file="log/verify_login.jsp" %>
<!-- VERIFICA SE O USUÁRIO TEM PERMISSÃO DE ACESSAR A PÁGINA, SENÃO REDIRECIONA PARA A PÁGINA INICIAL -->
<%@include file="log/sup_page.jsp" %>

<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Generate a TXT File</title>
      <link rel="icon" href="favicon.ico" type="image/x-icon" />
      <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
      <link rel="stylesheet" href="menu_madmac_files/cbcscbmenu_madmac.css" type="text/css" />
		<link rel="stylesheet" href="estilos/madmac_tables.css" type="text/css" />
      <link rel="stylesheet" href="estilos/madmac_inputs.css" type="text/css" />
		<link rel="stylesheet" href="estilos/madmac_others.css" type="text/css" />
		<link rel="stylesheet" href="estilos/madmac_divs.css" type="text/css" />
      <script type="text/javascript" src="madmacproject.js"></script>
		<script type="text/javascript" src="common_pages/js/mad_hints.js"></script>

      <script language="JavaScript" type="text/javascript">
			setNextField('file');
			setCurrentForm('create_txt');
			setNextPage('create_txt_file.jsp');
			mad_hint_texto += 'O delimitador serve para separar os nomes do arquivo criado.<br/>';
			mad_hint_texto += 'Por exemplo com o delimitador <b>| (pipe)</b>, o arquivo sairá da seguinte maneira:<br/><br/>';
			mad_hint_texto += '<span style="padding-left:5%;">12345|suporte|12:34:56:ab:cd:ef|10.50.0.5/8</span>';
		</script>

   </head>
   <body onload="document.getElementById('file').focus()">
      <div class="logotype"><img src="madmac.png" height="120%" alt="MAD MAC"></div>

      <div class="menu_principal">
			<%@ include file="common_pages/menu.jsp" %>
      </div>

      <div class="search_mac">
			<%@include file="common_pages/search_mac.jsp" %>
      </div>

      <div class="corpo">
			<p><br/><br/></p>

			<form action="create_txt_file.jsp" method="post" name="create_txt" onreset="document.getElementById('file').focus()">
				<table width="50%" align="center" border="0" cellpadding="12" cellspacing="0" rules="all" class="main_table">
					<tr>
						<td width="5%"></td>
						<td class="meta_cell">Nome Do Arquivo</td>
						<td class="data_cell">
							<input type="text" name="file" id="file" maxlength="80" class="input_fields" onfocus="nextfield='delimitador'" />
						</td>
						<td width="5%"></td>
					</tr>
					<tr>
						<td></td>
						<td class="meta_cell">Delimitador</td>
						<td class="data_cell">
							<input type="text" name="delimitador" maxlength="5" class="input_fields_p" style="text-align:center;"
									 onfocus="nextfield='done'" />
						</td>
						<td class="cmd_cell" align="center">
							<img id="hint_image" style="cursor: help;" src="icons/information.png"
								  align="top" alt="" onmouseover="mostrarDicas();" onmouseout="limparDicas();">
						</td>
					</tr>
				</table>
				<br/>
				<center>
				<div class="rounded_default">
					<table width="100%" align="center" border="0" cellpadding="15" cellspacing="0" rules="none">
               <tr class="menu_sql">
                  <td></td>
                  <td align="center">
                     <input type="reset" value="Refazer" class="reset_button" />
                  </td>
                  <td align="center">
                     <input type="submit" value="Criar TXT" class="bSubmit_txt" />
                  </td>
                  <td></td>
               </tr>
            </table>
				</div>
				</center>
			</form>
			<div id="mad_hint">
				<span id="hint_text"></span>
			</div>
			<p><br/><br/></p>
      </div>
      <div class="footer_madmac">
			<%@include file="common_pages/footer.jsp" %>
      </div>
   </body>
</html>